STEP 6: We're now ready to make our first skyscraper!

  • Go to GRAPHICS, click on , and place Rectangle at the bottom of your program.
  • Change the x-coordinate argument from 0 to x and the y-coordinate argument from 0 to y.
  • Change the height argument from 50 to height.
  • Run your code more than once. You get a different random building each time!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)